#ifndef QUEUE_H
#define QUEUE_H

#include "Person.h"
using namespace std;

struct queueNode
{
public:
	Person * chessnode;
	queueNode* next;
	queueNode() :chessnode(nullptr), next(nullptr) {}
	queueNode(Person * p)
	{
		chessnode = p;
		next = nullptr;
	}
	~queueNode() {}
};

class Queue
{
private:
	queueNode* firstOne;
	queueNode* lastOne;
	int size_;
public:
	int getsize();
	bool empty_();
	void pop();
	void push(Person * p);
	Person * front_();
	Person * back_();
	Queue();
	~Queue();
};



#endif // QUEUE_H
